import request from '@/utils/request'

// 查询CommodityClassification列表
export function listCommodityClassification(query) {
  return request({
    url: '/system/CommodityClassification/list',
    method: 'get',
    params: query
  })
}

// 查询CommodityClassification详细
export function getCommodityClassification(id) {
  return request({
    url: '/system/CommodityClassification/' + id,
    method: 'get'
  })
}

// 新增CommodityClassification
export function addCommodityClassification(data) {
  return request({
    url: '/system/CommodityClassification',
    method: 'post',
    data: data
  })
}

// 修改CommodityClassification
export function updateCommodityClassification(data) {
  return request({
    url: '/system/CommodityClassification',
    method: 'put',
    data: data
  })
}

// 删除CommodityClassification
export function delCommodityClassification(id) {
  return request({
    url: '/system/CommodityClassification/' + id,
    method: 'delete'
  })
}
